<extend name="Base/common"/>
<block name="header">
    <include file="Public/nav"/>
</block>
<block name="body">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/js/ext/zf/css/zebra_form.css"/>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/js/ext/webuploader/js/webuploader.js"></script>
    <link href="__PUBLIC__/js/ext//webuploader/css/webuploader.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/js/ext/webuploader/js/webuploader.js"></script>
    <link href="__PUBLIC__/js/ext/webuploader/css/webuploader.css" type="text/css" rel="stylesheet">


    <div class="container common-block templet">
        <ol class="breadcrumb">
            <li><a href="{:U('index')}">首页</a></li>
            <li><a href="{:U('plugin')}">插件</a></li>
            <li class="active">创建插件</li>
        </ol>

        <h3 style="color: #666" class="col-md-offset-2"><span class="text-success">创建插件 <i
                class="icon-chevron-right"></i> 更新版本 <i
                class="icon-chevron-right"></i> </span>审核 <i
                class="icon-chevron-right"></i>上架 </h3>

        <div class="col-md-offset-1 col-md-11">
            {$form}
        </div>

    </div>



    <div id="parent-version" class="hide">
        <li class="clearfix">
            <div class='pull-left i-list'>
                <select name="price[value][]" class="form-control pull-left" style="width: 100px;">
                    <volist name="score" id="vo">
                        <option value="{$vo.id}" >{$vo.title}</option>
                    </volist>
                </select>
                <input name="price[price][]" placeholder="" class="form-control" style="width: 100px;" value="">

                <input name="price[price_type][]" type="hidden" value="price">
                <input name="price[is_parent][]" type="hidden" value="1">

            </div>
            <div class="pull-left handle_div">
                <a href="javascript:" title="删除" data-role="del_li"><i class="icon icon-remove"></i></a>
                <a href="javascript:" title="添加折扣方案" data-role="add_child"><i class="icon icon-sitemap"></i></a>
            </div>
        </li>

    </div>


    <div id="child-version" class="hide">
        <li class="clearfix">
            <div class='pull-left'>
                <select name="price[value][]" class="form-control pull-left" style="width: 100px;">
                    <volist name="roles" id="role">
                        <option value="{$role.id}">{$role.title}</option>
                    </volist>
                </select>

                <select name="price[price_type][]" class="form-control pull-left" style="width: 100px;">
                    <option value="rebate">打折</option>
                    <option value="price">定价</option>
                </select>
                <input name="price[price][]" placeholder="" class="form-control" style="width: 100px;" value="">
                <input name="price[is_parent][]" type="hidden" value="0">
            </div>
            <div class="pull-left handle_div">
                <a href="javascript:" title="删除" data-role="del_li"><i class="icon icon-remove"></i></a>
            </div>
        </li>
    </div>


    <script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/ueditor.all.min.js"></script>

    <script type="text/javascript" src="__PUBLIC__/js/ext/zf/js/zebra_form.js"></script>
</block>